package kd.hc.ecco;

import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.entity.datamodel.IBillModel;
import kd.bos.entity.datamodel.events.LoadDataEventArgs;
import kd.bos.entity.datamodel.events.PropertyChangedArgs;
import kd.bos.form.events.AfterDoOperationEventArgs;
import kd.bos.form.field.events.BeforeF7SelectEvent;
import kd.bos.form.field.events.BeforeF7SelectListener;
import kd.bos.i18n.mservice.I18nServiceHelper;
import kd.bos.i18n.mservice.utils.AmountConvertResult;
import kd.hc.utils.BusinessDataServiceHelperExt;
import kd.hc.utils.ShowParameterUtil;
import kd.occ.ocbase.common.util.Convert;
import kd.sdk.plugin.Plugin;

import java.util.EventObject;

/**
 * 合约规划
 */
public class ContractPlanningBillPlugin extends AbstractBillPlugIn implements Plugin, BeforeF7SelectListener {

    @Override
    public void beforeF7Select(BeforeF7SelectEvent beforeF7SelectEvent) {

    }

    @Override
    public void registerListener(EventObject e) {
        super.registerListener(e);
    }

    @Override
    public void afterBindData(EventObject e) {
        super.afterBindData(e);
        //合约包
        IBillModel billModel = (IBillModel) this.getModel();
        ShowParameterUtil.billInContainerList(this.getView(), this.getModel(), "hc95_contract_package", "hc95_hyb_flex", "hc95_hyghid", billModel.getPKValue());

    }
}